home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 4
/
The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO
/
clang
/
3d_lib.zip
/
READ.ME
< prev
next >
Wrap
Text File
|
1993-05-09
|
4KB
|
85 lines
3D Transforms Library - SHAREWARE
NOTICE
3D TRANSFORMS is protected by copyright. The functions in this
library may be used for your own personal use, but may NOT be
resold or used for any other commercial purpose, or included in
any commercial product without written permission from the author.
You may copy and distribute this product freely, provided 1) it
is reproduced in its entirety, including documentation and exam-
ples, and 2) you do not charge for copies (other than a nominal
copying fee to cover materials).
You may obtain permission to use 3D TRANSFORMS commercially,
along with complete source code, by sending $25.00 U.S. to:
3D H - Header file for using the 3DLIB
READ ME - This file
3DLIB DOC - Documentation on using the library
DEMO3D PRJ - Turbo C 2.0 ascii project file for demo program
TC3D BAT - Build complete 3D libraries, all memory models
TCMONE BAT - The other batch files build one library
TCONE BAT - or incrementally update one. I got some errors
TCONEM BAT - with them, Use TC3D and build all, then use
- just the ones you need.
DEMO3D EXE - Rotate 3 geometric objects, with hidden surface removal
ZROT C - Rotation about Z axis
AC C - Add corner to face on object
YROT C - Rotation about Y axis
XROT C - Rotation about X axis
XF C - Transform object between coordinate systems
VM C - Vector muiltiplication package
TRANS C - Translation (move) object
SCALE C - Scale (size) object
PERSP C - Perspective transformation (draw objects with
- perspective foreshortening, that is, draw with
- a vanishing point)
NORM C - Calculate normal to a face
NO C - Create NEW object
NF C - Create NEW face on current object
MXZ C - Find maximum Z coordinate in face
MNZ C - Find minimum Z coordinate in face
MM C - Matrix multiplication package
ID C - Create an identity matrix
DUMPV C - Dump vertext to screen
DUMPO C - Dump object to screen
DUMPM C - Dump matrix to screen
DUMPF C - Dump face to screen
DP C - Calculate dot product
DO C - Display object on screen
DF C - Display face on screen
DELF C - Delete face from object
AF C - Add fact to object
DEMO3D C - 3d Demo program
To build libraries:
Execute: TC3D, the batch file, with plenty of disk space and
spare time. Look at the comments in the batch file to see
what assumptions it makes about where include and library
files are. Note that TLIB chokes out a lot of warnings as
it builds the libraries. I'm not certain why, but the end
result DOES WORK. Also, when compiling, you will get more
than a few warnings that "structures are passed by value".
Turbo C can support this, but it is not normally done in C.
A subroutine is generally passed a POINTER to a structure.
You may wish to modify the associated .C functions,
DEMO3D.C, and your own programs to use pointers
instead...since they are more correct, and are generally
preferred.
DEMO3D - This program assumes your vido adapter has multiple
display pages. This is true for EGA, but not VGA. I
modified the code so that if it detects VGA it "downshifts"
to EGA. I'm not certain how well it works in CGA or
Hercules (if at all). The program uses inactive display
pages while it constructs the images - so you don't see them
being painted - then makes the page active. The animation
is slow, but it's obvious the author did a GOOD JOB on this
code overall. For more details see 3dlib.doc!